# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: team/phosh <fossdd@pwned.life>
pkgname=phosh-wallpapers
pkgver=0.42.0
pkgrel=0
pkgdesc="Phosh wallpapers and other artwork"
url="https://gitlab.gnome.org/guidog/phosh-wallpapers"
arch="noarch"
license="GPL-3.0-or-later AND CC-BY-SA-4 AND CC0"
makedepends="meson"
subpackages="
	plymouth-theme-phosh:_plymouth
	sound-theme-phosh:_sounds
"
source="https://sources.phosh.mobi/releases/phosh-wallpapers/phosh-wallpapers-${pkgver/_/.}.tar.xz"
builddir="$srcdir/$pkgname-${pkgver/_/.}"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

_plymouth() {
	amove usr/share/plymouth/themes/phosh
}

_sounds() {
	amove usr/share/sounds
}

sha512sums="
4169ca4f3f4b6d0fa4337121a64d86ec054561756819abcb3ec7b71508392973a80701dcf84f6495e0e648da6a1549f624a9513df814c8898a3fdd4c1353b580  phosh-wallpapers-0.42.0.tar.xz
"
